﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FeedBackInfo.aspx.cs" Inherits="webadmin_FeedBackInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link type="text/css" href="css/style.css" rel="stylesheet" />
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="js/lib.js"></script>
    <script type="text/javascript">
        $(function () {
            BindBtn();
        })
    </script>
</head>
<body>
    <form id="form1" runat="server" style="height: 100%;">
    <div id="conBox">
        <div class="grid-box" style="padding-top: 10px;" id="listinfo">
            <asp:Repeater ID="rptFeedBack" runat="server" OnItemCommand="rptFeedBack_ItemCommand">
                <ItemTemplate>
                    <table class="form-table" runat="server" visible='<%#Eval("ParentID").ToString()=="0"%>'>
                        <tr class="tr1">
                            <th>
                                网友问题
                            </th>
                            <td>
                                <div class='f-right' style='padding-right: 10px;'>
                                    <%#Eval("AddTime")%>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <th style='width: 70px; text-align: right;'>
                                问题标题：
                            </th>
                            <td>
                                <%#Server.HtmlEncode(Eval("Title").ToString())%>
                            </td>
                        </tr>
                        <tr  class="tr1">
                            <th>
                                E-mail：
                            </th>
                            <td>
                                <%#Server.HtmlEncode(Eval("Email").ToString())%>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                联系电话：
                            </th>
                            <td>
                                <%#Server.HtmlEncode(Eval("Phone").ToString())%>
                            </td>
                        </tr>
                        <tr class="tr1">
                            <th>
                                问题描述：
                            </th>
                            <td>
                                <%#Server.HtmlEncode(Eval("Info").ToString())%>
                            </td>
                        </tr>
                    </table>
                    <table class="form-table" runat="server" visible='<%#Convert.ToInt32(Eval("ParentID"))>0%>'>
                        <tr class="tr1">
                            <th style='width: 70px; text-align: right;'>
                                专家回复
                            </th>
                            <td>
                                <div class='f-right' style='padding-right: 10px;'>
                                    <%#Eval("AddTime")%>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                回复内容：
                            </th>
                            <td>
                                <%#Server.HtmlEncode(Eval("Info").ToString())%>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                
                            </th>
                            <td>
                               <asp:ImageButton ID="btnDelete" runat="server" CommandName="Delete" CommandArgument='<%#Eval("ID")%>'
                                            ImageUrl="images/ico-delete.gif" OnClientClick="return confirm('确定要删除该回复信息吗?');"
                                            ToolTip="删除" />
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:Repeater>
            <table class="form-table">
                <thead>
                    <tr>
                        <td colspan="3">
                            回复该问题
                        </td>
                    </tr>
                </thead>
                <tbody>
                    <tr class="tr1">
                        <th style="width: 200px;">
                            回复内容：
                        </th>
                        <td>
                            <asp:TextBox ID="txtReInfo" runat="server" TextMode="MultiLine" Width="400" Height="100"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="tr1">
                        <th>
                        </th>
                        <td style="line-height: 30px;">
                            <asp:Button ID="btnSubmit" runat="server" Text="提 交" OnClick="btnSubmit_Click" CssClass="button" /> 
                            <input id="Button1" type="button" value="返回" class="button" onclick="top.getPage('FeedBackList.aspx','专家答疑列表')" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
